//logs.js
const util = require('../../utils/util.js')
var http = require('../../http.js')

Page({
  data: {
    slides: []
  },
  onLoad: function () {
    this.setData({
      logs: (wx.getStorageSync('logs') || []).map(log => {
        return util.formatTime(new Date(log))
      })
    })
    this.getSlide();
  },
  getSlide: function(){
    http.req("PageSubArea/HotPlayMovies.api?locationId=290","GET",null,(res)=>{
      console.log(res)
    })
  }
})
